package xrz.com.jr;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import xrz.com.jr.utils.ExitUtil;

public class XiTongContentActivity extends AppCompatActivity implements View.OnClickListener {
    private TextView Tv_XiTong;
    private TextView Tv_Title;
    private ImageView Img_Back;
    private RelativeLayout mReal;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xi_tong_content);
        ExitUtil.getInstant().addToPool(this);
        Tv_Title = (TextView) findViewById(R.id.top_tv);
        Tv_XiTong = (TextView) findViewById(R.id.tv_xitong);
        Img_Back = (ImageView) findViewById(R.id.top_back_img);
        mReal= (RelativeLayout) findViewById(R.id.top_base_toprela);
        Img_Back.setOnClickListener(this);
        String type=getIntent().getStringExtra("type");
        if(type.equals("1")){
            Tv_Title.setText("详细");
        }else{
            Tv_Title.setText("系统学习");
        }
        String str = getIntent().getStringExtra("data");
        if (str != null && !str.equals("")) {
            Tv_XiTong.setText(Html.fromHtml(str));
        }
    }

    @Override
    public void onClick(View view) {
        finish();
    }
}
